According to https://www.w3.org/TR/filter-effects-1/,
the length passed to blur() is the standard deviation,
and according to https://www.w3.org/TR/css-backgrounds-3/#shadow-blur
the blur radius is twice the standard deviation.
graphene_matrix_t matrix;
graphene_vec4_t offset;
int i, j;
- double radius;
if (gtk_css_filter_value_is_none (filter))
return;
{
if (filter->filters[j].type == GTK_CSS_FILTER_BLUR)
{
- radius = _gtk_css_number_value_get (filter->filters[j].blur.value, 100.0);
- gtk_snapshot_push_blur (snapshot, radius);
+ double std_dev = _gtk_css_number_value_get (filter->filters[j].blur.value, 100.0);
+ gtk_snapshot_push_blur (snapshot, 2 * std_dev);
}
else if (filter->filters[j].type == GTK_CSS_FILTER_DROP_SHADOW)
{